package cn.alm.allinoneboot.controller;

import cn.alm.allinoneboot.common.CommonResult;
import cn.alm.allinoneboot.dto.CommonDto;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
public class HelloController {

    @PostMapping("hello")
    public CommonResult hello(@RequestBody CommonDto dto) {
        CommonResult cr = new CommonResult();
        cr.ok();
        cr.setData("hello");
        return cr;
    }

}
